package com.ast;


public class StmtNode {
    LValNode lVal;
    ExpNode exp;
    BlockNode blockNode;
    IfNode ifNode;
    WhileNode whileNode;
    BreakNode breakNode;
    ContinueNode continueNode;
    ReturnNode returnNode;
    public StmtNode(LValNode lVal, ExpNode exp, BlockNode blockNode, IfNode ifNode, WhileNode whileNode, BreakNode breakNode, ContinueNode continueNode, ReturnNode returnNode) {
        this.lVal = lVal;
        this.exp = exp;
        this.blockNode = blockNode;
        this.ifNode = ifNode;
        this.whileNode = whileNode;
        this.breakNode = breakNode;
        this.continueNode = continueNode;
        this.returnNode = returnNode;
    }
    public StmtNode(LValNode lVal, ExpNode exp) {
        this.lVal = lVal;
        this.exp = exp;
    }
    public StmtNode(ExpNode exp) {
        this.exp = exp;
    }
    public StmtNode(BlockNode blockNode) {
        this.blockNode = blockNode;
    }
    public StmtNode(IfNode ifNode) {
        this.ifNode = ifNode;
    }
    public StmtNode(WhileNode whileNode) {
        this.whileNode = whileNode;
    }
    public StmtNode(BreakNode breakNode) {
        this.breakNode = breakNode;
    }
    public StmtNode(ContinueNode continueNode) {
        this.continueNode = continueNode;
    }
    public StmtNode(ReturnNode returnNode) {
        this.returnNode = returnNode;
    }

    public LValNode getlVal() {
        return lVal;
    }

    public ExpNode getExp() {
        return exp;
    }

    public BlockNode getBlockNode() {
        return blockNode;
    }

    public IfNode getIfNode() {
        return ifNode;
    }

    public WhileNode getWhileNode() {
        return whileNode;
    }

    public BreakNode getBreakNode() {
        return breakNode;
    }

    public ContinueNode getContinueNode() {
        return continueNode;
    }

    public ReturnNode getReturnNode() {
        return returnNode;
    }
}
